import java.util.Scanner;
public class 最大数 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int max=0;
        for (int i = 0; i < 10; i++) {
            int num = in.nextInt();
            if(num>max){
                max=num;
            }
        }
        System.out.println(max);
    }
}
